import request from '@/utils/requestPro';

/**
 * 获取预约送货信息--查询
 * @param params
 */
export function getQueryScheduledApi(params) {
	return request({
		url: `/admin/appHome/scheduledDelivery/businessQueryScheduled`,
		method: 'get',
		params,
	});
}

/**
 * 获取预约送货信息--取消
 * @param params
 */
export function cancelScheduledApi(params) {
	return request({
		url: `/admin/appHome/scheduledDelivery/BusinessCancelScheduled`,
		method: 'put',
		params,
	});
}

/**
 * 获取预约送货信息--提交
 * @param data
 */
export function addCancelScheduledApi(data) {
	return request({
		url: `/admin/appHome/scheduledDelivery/businessAddScheduled`,
		method: 'post',
		data,
	});
}